package com.smart.thrift.annotation;

import com.smart.thrift.config.server.ThriftServiceScanRegistrar;
import org.springframework.context.annotation.Import;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import({ThriftServiceScanRegistrar.class})
public @interface ThriftComponentScan {

    @AliasFor(annotation = ThriftComponentScan.class, attribute = "basePackages")
    String[] value() default {};
    @AliasFor(annotation = ThriftComponentScan.class, attribute = "value")
    String[] basePackages() default {};

    Class<?>[] basePackageClasses() default {};
}
